import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/sys/Supplier/${url}`, ...arg)
/**
 * 工序管理
 *
 * @author mh
 * @date 2022-09-22 22:33:20
 */
export default {
	// 获取工序分页
	SupplierPage(data) {
		return request('SupplierPage', data, 'get')
	},
	// 新增工序
	SupplierSend(data) {
		return request('SupplierAdd', data)
	},
	// 删除工序
	SupplierDelete(data) {
		return request('Delete', data)
	},
	// 获取工序详情
	SupplierDetail(data) {
		return request('Edit', data, 'get')
	}
}
